package com.jinlia.show.modules.base.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinlia.show.modules.base.system.entity.Order;
import com.jinlia.show.modules.base.model.po.OrderPO;
import com.jinlia.show.modules.base.model.query.OrderQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    OrderPO getVOById(@Param(value = "id") Long id);

    List<OrderPO> getPOList(@Param(value = "orderQuery") OrderQuery orderQuery);


    /**
     * 分页查询
     *
     * @param orderQuery
     * @param page
     * @return
     */
    Page<OrderPO> pageListVO(@Param(value = "page") IPage<OrderPO> page, @Param(value = "orderQuery") OrderQuery orderQuery);

}
